<template>
  <div>
    <h2>事件修饰符</h2>
    <a href="https://www.baidu.com/" @click.prevent.stop="aa">跳转到百度</a>
    <div>
      <!-- 按键修饰符 只能给 keyup keydown 绑定 -->
      <input type="text" @keyup.enter="cc">
    </div>
  </div>
</template>

<script>
export default {
  methods:{
    aa () {
      console.log(123);
    },
    cc (e) {
      console.log(e.target.value);
    }
  }
}
</script>

<style>
  div {
    width: 300px;
    height: 300px;
    background-color: pink;
  }
</style>